]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st/button: Remove transition vfunc
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 4 Jul 2025 17:49:02 +0000 (19:49 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 4 Jul 2025 18:23:38 +0000 (18:23 +0000)
This was part of the original MxWidget import, but we never used
it for anything. After more than 15 years it is unlikely that we
are going to start, so remove it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3792>

src/st/st-button.c
src/st/st-button.h

index 683af7f0abb520ba6de27c904813fc23dc988da9..24c41e4fb3a09a0d5f26946e0ce129abf7447d55 100644 (file)
@@ -114,18 +114,11 @@ static void
 st_button_style_changed (StWidget *widget)
 {
   StButton *button = ST_BUTTON (widget);
-  StButtonClass *button_class = ST_BUTTON_GET_CLASS (button);
 
   ST_WIDGET_CLASS (st_button_parent_class)->style_changed (widget);
 
   /* update the label styling */
   st_button_update_label_style (button);
-
-  /* run a transition if applicable */
-  if (button_class->transition)
-    {
-      button_class->transition (button);
-    }
 }
 
 static void
index 11a4f513874d0dd45a25564869cca7f6c0be4fbd..ffce0ded229a45b504cfa00fad8967e2589c80d9 100644 (file)
@@ -35,9 +35,6 @@ struct _StButtonClass
 {
   StBinClass parent_class;
 
-  /* vfuncs, not signals */
-  void (* transition) (StButton     *button);
-
   /* signals */
   void (* clicked) (StButton *button, int clicked_button);
 };